layui.config({
    base: '/plugins/layui/extend/modules/',
    version: false
}).use(['table', 'jquery', 'ht_cookie', 'ht_config'], function () {
    var $ = layui.jquery;
    var config = layui.ht_config;
    var table = layui.table;//表格


    var paramStr="{typeId: '', stationName: '', stationPlace: '',  state: ''}";
    //执行一个 table 实例
    table.render({
        elem: '#recruitTable'
        , height: 500
        , where: paramStr
        ,url: config.basePath + '/recruit/recruitList' //数据接口
        , page: true //开启分页
        , cols:
            [[ //表头
                {field: 'id', title: 'ID', width: 80, sort: true, fixed: 'left'}
                , {field: 'typeName', title: '招聘类别', width: 150}
                , {field: 'stationName', title: '岗位名称', width: 150}
                , {field: 'stationPlace', title: '工作地点', width: 100}
                , {field: 'time', title: '失效时间', width: 170}
                , {field: 'state', title: '状态', width: 50}
                , {field: 'createName', title: '创建人', width: 80, sort: true}
                , {field: 'crateTime', title: '创建时间', width: 170}
                , {fixed: 'right', width: 165, align: 'center', toolbar: '#barDemo'}
            ]]
    })
    ;


});